﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>菜单列表</title>
    <link href="../../lib/layui/css/layui.css" rel="stylesheet" />
    <link href="../../lib/font-awesome-4.7.0/css/font-awesome.css" rel="stylesheet" />
    <link href="../../lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
    <div class="winui-toolbar">
        <div class="winui-tool">
            <button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i>刷新数据</button>
            <button id="addMenu" class="winui-toolbtn"><i class="fa fa-plus" aria-hidden="true"></i>新增菜单</button>
            <button id="editMenu" class="winui-toolbtn"><i class="fa fa-pencil" aria-hidden="true"></i>编辑菜单</button>
            <button id="deleteMenu" class="winui-toolbtn"><i class="fa fa-trash" aria-hidden="true"></i>删除菜单</button>
        </div>
    </div>
    <div style="margin:auto 10px;">
        <table id="menus" lay-filter="menustable"></table>
        <script type="text/html" id="barMenu">
            <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
            <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
        </script>
        <script type="text/html" id="status">
            {{#  if(d.status == 1){ }}
            <span style="color:green">可用</span>
            {{#  } else if(d.status==2) { }}
            <span style="color:red">禁用</span>
			{{#  } else if(d.status==3) { }}
			<span style="color:blue">待审核</span>
            {{#  } }}
        </script>
        <script type="text/html" id="openType">
            {{#  if(d.openType == 1){ }}
            HTML层
            {{#  } else if(d.openType==2) { }}
            iframe
			{{#  } else if(d.openType==3) { }}
			标签页
            {{#  } }}
        </script>
        <script type="text/html" id="menuType">
            {{#  if(d.menuType == 1){ }}
                              桌面
            {{#  } else if(d.menuType==2) { }}
                               开始菜单
			{{#  } }}
        </script>
    </div>
    <script src="../../lib/layui/layui.js"></script>
    <script type="text/javascript">
        layui.config({
            base: '../../js/'
        }).use('menus');
    </script>
</body>
</html>